package controllers

import (
	"github.com/astaxie/beego"
)

type commonController struct {
	beego.Controller
}

func (this *commonController) Rsp(status int, msg string) {
	this.Data["json"] = &map[string]interface{}{"status": status, "message": msg}
	this.ServeJSON()
}

func (this *commonController) RspData(status int, msg string, data string) {
	this.Data["json"] = &map[string]interface{}{"status": status, "message": msg, "data": data}
	this.ServeJSON()
}
func init() {
	//权限处理，接口验证
}
